<template>
	<view>
		<view class="cu-form-group margin-top">
			<view class="title">母乳</view>
			<switch disabled @change="SwitchA" :class="switchA?'checked':''" :checked="switchA?true:false"></switch>
		</view>
		<view class="cu-form-group">
			<view class="title">奶粉</view>
			<switch disabled @change="SwitchA" :class="'checked'" :checked="true"></switch>
		</view>
		<view class="cu-form-group">
			<view class="title">D3</view>
			<switch disabled @change="SwitchA" :class="switchA?'checked':''" :checked="switchA?true:false"></switch>
		</view>
		<view class="cu-form-group">
			<view class="title">水</view>
			<switch disabled @change="SwitchA" :class="switchA?'checked':''" :checked="switchA?true:false"></switch>
		</view>
		
		<view class="cu-list menu" :class="['sm-border','card-menu margin-top']">
		<button disabled class="bg-red margin-tb-sm lg" @click="addBaby">添加项目</button>
		</view>
		<text>说明：
		1、优先级：c，最后做，当前默认奶粉一种，（a>b>c）\n
		2、添加项目名称和规格单位，设置开启状态即可
		</text>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				switchA:false
			}
		},
		methods: {
			SwitchA(e) {
				this.switchA = e.detail.value
			},
		}
	}
</script>

<style>

</style>
